import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "@/plugins/request.js";
import toolClass from "@/plugins/utils.js";

import ElementPlus from "element-plus";
import locale from "element-plus/lib/locale/lang/zh-cn";
import "dayjs/locale/zh-cn";
import "element-plus/lib/theme-chalk/index.css";
import "@/assets/css/customElement.css";

const app = createApp(App);
app.config.globalProperties.$axios = axios;
app.config.globalProperties.$tool = toolClass; // 全局工具类

app.use(router);
app.use(store);
app.use(ElementPlus, { locale });
window.vm = app.mount("#app");
